<?php
use \fast\Form;
?>
<form id="edit-form" class="form-horizontal form-ajax" role="form" method="POST" action="" data-toggle="validator">
    <input type="hidden" name="{:Config('var_ajax')}" value="1">
    <?php foreach ($info['config'] as $key => $val): ?>
    <div class="form-group">
        <label for="name" class="control-label col-xs-12 col-sm-2">{:lang($key)}:</label>
        <div class="col-xs-12 col-sm-8">
            <?php echo Form::input($val['type'], $key, $val['value'], [
                'id' => $key,
                'class' => 'form-control',
                'placeholder' => $val['remark'],
                'data-rule' => 'required'
            ]);?>
        </div>
    </div>
    <?php endforeach ?>
    <div class="form-group hidden layer-footer">
        <div class="col-xs-2"></div>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>